AWS-DA(361-370)
AWS Lambda and Performance Optimization Quiz
Test your knowledge of AWS Lambda, performance bottlenecks, and optimization strategies with this comprehensive quiz. Designed for developers and cloud practitioners alike, this quiz covers various facets of AWS services, including performance tuning and monitoring techniques.
- 10 engaging multiple choice questions
- Focus on practical AWS scenarios
- Enhance your knowledge on AWS services
A developer has created an AWS Lambda function in Java. The developer want to determine the location of a performance bottleneck in the code. Which actions should be done to ascertain the existence of the bottleneck?
A. Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric. Use the CloudWatch console to analyze the resulting data.
B. Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the Amazon CloudWatch console to analyze the resulting data.
C. Use the AWS X-Ray API to write trace data into X-Ray from strategic places within the code. Use the X-Ray console to analyze the resulting data.
D. Use the Amazon CloudWatch API to write timestamps to a custom CloudWatch metric. Use the AWS X-Ray console to analyze the resulting data.
A developer is configuring a CPU-intensive AWS Lambda function that runs once per hour. The function typically runs in 45 seconds, but may take up to one minute at times. The timeout parameter is set to three minutes, and the other settings are left alone. The developer must optimize this function's execution time. Which solution will satisfy this criterion?
A. Redeploy the function within the default VPC.
B. Increase the function's memory.
C. Redeploy the function by using Lambda layers.
D. Increase the function's reserved concurrency.
A Developer is using an AWS VPN connection based on the Border Gateway Protocol (BGP) to connect from on-premises to Amazon EC2 instances in the Developer's account. The Developer may access an EC2 instance in subnet A but not in subnet B of the same VPC. Which log files may the developer examine to determine if traffic reaches subnet B?
A. VPN logs
B. BGP logs
C. VPC Flow Logs
D. AWS CloudTrail logs
A developer needs to use Amazon ECS to deploy an application running on AWS Fargate. The application has environment variables that must be given to a container during initialization. How should the container's environment variables be passed?
A. Define an array that includes the environment variables under the environment parameter within the service definition.
B. Define an array that includes the environment variables under the environment parameter within the task definition.
C. Define an array that includes the environment variables under the entryPoint parameter within the task definition.
D. Define an array that includes the environment variables under the entryPoint parameter within the service definition.
A business has an internet-facing application that makes use of Web Identity Federation to receive a temporary credential from Amazon Web Services Security Token Service (AWS STS). The application then makes use of the token to get access to AWS services. Take a look at the following response:
Which rights are connected with the application's call, based on the answer displayed?
A. Permissions associated with the role AROACLKWSDQRAOEXAMPLE:app1
B. Permissions associated with the default role used when the AWS service was built
C. Permission associated with the IAM principal that owns the AccessKeyID ASgeIAIOSFODNN7EXAMPLE
D. Permissions associated with the account that owns the AWS service
AWS Elastic Beanstalk applications must be deployed in several regions and each region requires a unique Amazon Machine Image (AMI). Which AWS CloudFormation template key should be used to define the region-specific AMI?
A. Parameters
B. Outputs
C. Mappings
D. Resources
A development team want to move code from a GitHub repository to AWS CodeCommit. What is required to transfer a cloned repository to CodeCommit via HTTPS?
A. A GitHub secure authentication token
B. A public and private SSH key file
C. A set of Git credentials generated from IAM
D. An Amazon EC2 IAM role with CodeCommit permissions
On AWS, an application makes use of third-party APIs. The developer needs to monitor API faults in the code and wants to be notified when the number of failures exceeds a predefined threshold. How is the Developer going to fulfill these requirements?
A. Publish a custom metric on Amazon CloudWatch and use Amazon SES for notification.
B. Use an Amazon CloudWatch API-error metric and use Amazon SNS for notification.
C. Use an Amazon CloudWatch API-error metric and use Amazon SES for notification.
D. Publish a custom metric on Amazon CloudWatch and use Amazon SNS for notification.
Amazon API Gateway is being used by a business to handle its public-facing API. The CISO stipulates that the APIs may be utilized just by test account users. What is the SAFEST method for restricting API access to users of this specific AWS account?
A. Client-side SSL certificates for authentication
B. API Gateway resource policies
C. Cross-origin resource sharing (CORS)
D. Usage plans
Amazon API Gateway is being used by an organization to give a public API named €Survey€ for gathering user feedback on its goods. The survey API is divided into phases called €DEV€ and €PROD€ and consists of a single resource called €/feedback€ that enables users to retrieve/create/update individual feedback postings. A Swagger file with version control is used to describe a new API for retrieving numerous feedback postings. To add the new API resource €/ listFeedbackForProduct€, the developer modifies the Swagger file that defines the API, uploads the file to the organization's version control system, and uses the API Gateway's Import API function to update the Survey API. Following successful import, the developer performs tests against the DEV stage and discovers that the resource €/listFeedbackForProduct€ is missing. What is the MOST LIKELY explanation for the resource's non-availability?
A. Even though the Swagger import was successful, resource creation failed afterwards.
B. There is a propagation delay of several minutes in creating API Gateway resources after import.
C. The developer needs to restart the API Gateway stage after import in order to apply the changes.
D. The developer needs to create a new deployment after import in order to deploy the changes.
{"name":"AWS-DA(361-370)", "url":"https://www.quiz-maker.com/QPREVIEW","txt":"Test your knowledge of AWS Lambda, performance bottlenecks, and optimization strategies with this comprehensive quiz. Designed for developers and cloud practitioners alike, this quiz covers various facets of AWS services, including performance tuning and monitoring techniques.10 engaging multiple choice questionsFocus on practical AWS scenariosEnhance your knowledge on AWS services","img":"https:/images/course6.png"}