Tüm alıştırma soruları
1542 soru
A developer is deploying a web application using AWS Elastic Beanstalk. The developer wants to include custom configuration files (with a `.config` extension) to install packages and define environment properties. In which directory at the root of the application source bundle must the developer place these files to ensure they are processed during deployment?
A developer is configuring a web application for deployment on AWS Elastic Beanstalk. The application requires a runtime environment variable named 'DATABASE_URL'. Additionally, the application requires an Amazon S3 bucket for storing user uploads, and this bucket's lifecycle must be tied directly to the Elastic Beanstalk environment. Which two configuration steps should the developer perform to satisfy these requirements? (Select TWO.)
Geçerli olan tümünü seçin
A software-as-a-service (SaaS) provider is exposing a REST API hosted on Amazon API Gateway to business partners. The partners need to authenticate using their own enterprise SAML 2.0 Identity Providers (IdPs). The provider wants to minimize custom authorization code and directly validate partner users before allowing them to invoke backend services. Which two configuration steps must the developer perform to meet these requirements?
Geçerli olan tümünü seçin
A development team is designing a highly scalable, stateless web application deployed on Amazon Elastic Container Service (ECS) tasks behind an Application Load Balancer. The application database layer is hosted on Amazon DynamoDB. The application requires:
1. Low-latency retrieval of product catalog data, which is read frequently but updated infrequently.
2. Reliable preservation of user shopping cart session state that must survive ECS task scale-in events.
Which TWO architectural configurations should the developer implement to meet these requirements? (Select TWO)
Geçerli olan tümünü seçin
A developer is building a serverless web application with a single-page application (SPA) frontend. The frontend needs to access a REST API hosted on Amazon API Gateway. The developer wants to implement user registration and sign-in, and must secure the REST API so that only authenticated users can access the endpoints. To minimize latency and eliminate the operational overhead of writing custom token validation code, which solution should the developer implement?
A developer is designing a client-side encryption solution for a custom application. The application will use envelope encryption to secure data packets before storing them. The developer calls the AWS KMS `GenerateDataKey` API operation.
Which components does AWS KMS return to the application in the API response?
A developer is building a serverless client application and needs to implement user authentication and allow authenticated users to upload files directly to a private Amazon S3 bucket. Which Amazon Cognito features should the developer use to meet these requirements? (Select TWO.)
Geçerli olan tümünü seçin
A developer is configuring an AWS Lambda function to run inside a custom VPC. The function needs to retrieve database configuration parameters stored in AWS Systems Manager Parameter Store. The corporate security policy requires that no traffic to Systems Manager may traverse the public internet. During testing, the Lambda function times out whenever it attempts to call the GetParameter API. How should the developer resolve this issue while complying with the security policy?
A developer needs to secure a configuration file containing sensitive application credentials that is in size. The developer wants to implement client-side encryption using a customer managed key in AWS Key Management Service (AWS KMS) before storing the file.
Which approach should the developer take to encrypt this file?
A developer is designing a serverless web application where users authenticate via an Amazon Cognito User Pool. The application must meet the following requirements:
1. Access a REST API hosted on Amazon API Gateway, where endpoints must be secured so that only authenticated users can access them with minimal validation latency and zero custom validation code.
2. Upload files directly to an Amazon S3 bucket into a user-specific prefix (s3://app-uploads/\${user_id}/) without routing the files through a backend server.
Which TWO configurations should the developer implement to meet these requirements?
Geçerli olan tümünü seçin
An AWS Lambda function is configured to run inside a private subnet of a custom VPC. The function retrieves transaction data from an internal Amazon RDS database and must then send a confirmation request to an external, public HTTP API. The database connection is successful, but the external API call times out. Which network configuration change will resolve the timeout issue?
A developer is preparing a deployment package for a Python application to be deployed on AWS Elastic Beanstalk. The application requires a Linux system package to be installed on the hosting EC2 instances during deployment, and a custom database connection string environment variable to be configured. Which two configurations should the developer include in the application source bundle to meet these requirements?
Geçerli olan tümünü seçin
A developer is designing a containerized microservice on Amazon ECS that processes and stores sensitive customer profiles. During a compliance audit, the security team mandates that any profile larger than must be encrypted before being written to an external database. The microservice must also retrieve and decrypt these profiles. Additionally, the database credentials used by the microservice must be rotated automatically every 30 days.
Which combination of AWS services and programmatic workflows should the developer implement to meet these requirements?
A developer manages a production environment deployed using an AWS CloudFormation stack. The stack contains an Amazon RDS DB instance, an Amazon EC2 instance, and an IAM role. A system administrator manually changed the security group of the RDS DB instance in the Amazon VPC Console to address a transient connection issue.
During a subsequent stack update to upgrade the database engine version and add policies to the IAM role, the update fails during the RDS DB instance modification. CloudFormation attempts to roll back the changes, but the rollback fails and remains stuck in the `UPDATE_ROLLBACK_FAILED` state because the manually modified security group configuration prevents the database rollback. The developer must complete the stack update, ensuring the new IAM policies are applied and the database is upgraded.
Which sequence of actions must the developer perform to resolve this issue?
A company is building a multi-tenant REST API using Amazon API Gateway. The API must validate incoming calls from clients using a custom JSON Web Token (JWT) sent in the X-Custom-Auth header. The token validation requires checking the token's signature against a public key, verifying that the tenant_id claim matches a list of active tenants, and dynamically generating an IAM policy to restrict access to only the tenant's specific resources. The authorization decision needs to be cached for 300 seconds to optimize performance. Which solution should a developer implement to meet these requirements?
A developer is building a REST API using Amazon API Gateway and wants to restrict access to authenticated users from a specific Amazon Cognito User Pool. The developer wants to use the built-in integration features of API Gateway without writing custom code for authentication validation. Which two actions must the developer perform to configure a Cognito User Pools authorizer for the API? (Select two.)
Geçerli olan tümünü seçin
A developer is deploying an update to a production web application hosted on AWS Elastic Beanstalk. The update must satisfy the following constraints:
* The application must maintain its full capacity of active instances throughout the deployment process to handle consistent user traffic.
* If the new version fails to deploy or pass health checks, the environment must roll back to the previous version automatically and as quickly as possible.
* The update must not require a DNS CNAME swap, as the domain name is mapped to a static resource external to the environment.
* The configuration must be managed programmatically as code inside the application source bundle.
Which configuration file path and content structure will satisfy these requirements?
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: RollingWithAdditionalBatch
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: Immutable
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: Immutable
yaml
option_settings:
aws:elasticbeanstalk:command:
DeploymentPolicy: AllAtOnce
An online multiplayer gaming application uses AWS Lambda behind an Amazon API Gateway to process game lobby updates. The application stores game session states in an Amazon DynamoDB table. During peak hours, a small number of extremely popular game lobbies experience rapid, successive read and write operations (multiple updates per second), resulting in frequent 'ProvisionedThroughputExceededException' errors. How should the developer modify the architecture to resolve these throttling errors most effectively?
A developer is writing an AWS CloudFormation template to deploy a web application. The application requires access to a database password that must be rotated automatically every 30 days.
Which approach should the developer use to reference this password in the CloudFormation template while meeting the security requirements?
A developer is designing a native mobile application that requires users to authenticate. Once logged in, the application must allow users to upload files directly to their own dedicated folders in an Amazon S3 bucket. Additionally, the application must call a backend REST API hosted on Amazon API Gateway that requires user authentication. The developer wants to implement a secure solution that minimizes custom code and management overhead.
Which two configuration steps should the developer perform to meet these requirements? (Select TWO.)
Geçerli olan tümünü seçin