1. A company is creating a REST service using an Amazon API Gateway with AWS Lambda integration. The service must run different versions for testing purposes. What would be the BEST way to accomplish this?
A) Create an API Gateway Lambda authorizer to route API clients to the correct API version B) Use an X C) Create an API Gateway resource policy to isolate versions and provide context to the Lambda function(s) D) Deploy the API versions as unique stages with unique endpoints and use stage variables to provide further context
2. A company has a legacy application that was migrated to a fleet of Amazon EC2 instances. The application stores data in a MySQL database that is currently installed on a single EC2 instance. The company has decided to migrate the database from the EC2 instance to MySQL on Amazon EDS. What should the Developer do to update the application to support data storage in Amazon RDS?
A) Create a new EC2 instance with an IAM role that allows access to the new RDS database. B) Update the database connection parameters in the application to point to the new RDS instance. C) Create an AWS Lambda function that will route traffic, from the EC2 instance to the RDS database. D) Add a script to the EC2 instance that implements an AWS SDK for requesting database credentials.
3. A company is running a Docker application on Amazon ECS. The application must scale based on user load in the last 15 seconds. How should a Developer instrument the code so that the requirement can be met?
A) Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds B) Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds C) Create a standard-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 5 seconds D) Create a high-resolution custom Amazon CloudWatch metric for user activity data, then publish data every 30 seconds
4. An AWS Lambda function generates a 3MB JSON file and then uploads it to an Amazon S3 bucket daily. The file contains sensitive information, so the Developer must ensure that it is encrypted before uploading to the bucket. Which of the following modifications should the Developer make to ensure that the data is encrypted before uploading it to the bucket?
A) Use the S3 managed key and call the B) Use the C) Use a custom KMS customer master key created for S3 in the Lambda function code. D) Use the default AWS KMS customer master key for S3 in the Lambda function code.
5. A set of APIs are exposed to customers using the Amazon API Gateway. These APIs have caching enabled on the API Gateway. Customers have asked for an option to invalidate this cache for each of the APIs. What action can be taken to allow API customers to invalidate the API Cache?
A) Ask customers to use AWS credentials to call the InvalidateCache API. B) Ask customers to pass an HTTP header called Cache-Control:max-age=0. C) Ask customers to invoke an AWS API endpoint which invalidates the cache. D) Ask customers to add a query string parameter called 'INVALIDATE_CACHE when making an API call.
Leave a comment