An enterprise is building a custom employee onboarding web application written in Node.js that runs on-premises. As part of the onboarding process, the application must programmatically create a unique IAM user, assign specific group memberships, and generate temporary access keys for the new hire without manual intervention. Which AWS interaction method is the most appropriate and secure way to implement this integration?
- AAWS CLI commands executed via shell scripts to provision permanent IAM Roles for each individual employee instead of IAM Users
- BAWS CloudFormation templates created dynamically to define and deploy the configuration for each new employee
- AWS SDK for JavaScript integrated directly into the application codeAnswer
- DAWS Management Console access configured with the AWS Account Root User credentials for programmatic browser automation
Answer
AWS SDK for JavaScript integrated directly into the application code
The AWS SDK for JavaScript allows developers to make programmatic API calls directly from Node.js code. It is designed specifically for application integration, handling request signing, serialization, and connection retries natively and securely.
Step-by-Step Solution
Key Concept
Programmatic interaction with AWS using the AWS Software Development Kit (SDK) for application integration.