Learn the core aspects of setting up and using AWS CodePipeline with these AWS CodePipeline MCQ questions and answers. This set focuses on account setup, IAM roles, integration with other AWS services, and creating your first pipeline. These questions help you master automation in delivering applications using AWS CodePipeline.
MCQs
Account Setup and IAM Roles
What is the primary purpose of AWS CodePipeline? a) Automating server provisioning b) Automating the software release process c) Managing database backups d) Enabling cross-region data transfer
Which AWS service is required to create permissions for AWS CodePipeline? a) AWS Lambda b) AWS IAM c) Amazon CloudWatch d) Amazon S3
What is the role of an IAM policy in AWS CodePipeline? a) Define code versioning rules b) Grant permissions to access resources in a pipeline c) Automate the deployment process d) Monitor pipeline execution
Which of the following is mandatory for AWS CodePipeline to access other AWS services? a) VPC Peering b) IAM Service Role c) EC2 Instance Profile d) AWS Config Rules
What does the “Service Role” in CodePipeline allow? a) Execution of custom scripts b) Access to other AWS services on behalf of the pipeline c) User authentication for manual approvals d) Managing deployment policies
Which format is used for specifying permissions in an IAM policy? a) YAML b) JSON c) XML d) Plain text
How can you secure the AWS CodePipeline setup? a) Use restrictive IAM roles and policies b) Disable CloudTrail logging c) Allow full access to all AWS services d) Use unencrypted connections
Integrating AWS CodePipeline with Other AWS Services
Which service is commonly used as a source stage in AWS CodePipeline? a) AWS Glue b) AWS CodeCommit c) Amazon Aurora d) AWS Direct Connect
How does AWS CodePipeline integrate with AWS Lambda? a) By managing database connections b) By invoking Lambda functions during pipeline execution c) By hosting web applications d) By replacing EC2 instances
What AWS service is typically used for deploying applications in the deploy stage of CodePipeline? a) Amazon RDS b) AWS Elastic Beanstalk c) Amazon DynamoDB d) AWS Shield
Which AWS service can be used to monitor the execution of a CodePipeline? a) Amazon QuickSight b) AWS CloudWatch c) AWS Cost Explorer d) AWS Auto Scaling
How is an artifact stored in AWS CodePipeline? a) In Amazon S3 buckets b) In DynamoDB tables c) On EBS volumes d) Using AWS Glue Data Catalog
What service allows integration of third-party tools with AWS CodePipeline? a) AWS Config b) AWS AppSync c) AWS CodeStar d) AWS Glue
How can CodePipeline trigger a build process in AWS CodeBuild? a) Through an EC2 instance b) By invoking a Lambda function c) By defining a build action in the pipeline d) Through AWS CLI
Which notification service can be integrated with CodePipeline for updates? a) Amazon SNS b) AWS Glue c) AWS AppRunner d) Amazon S3
Creating Your First Pipeline
What is the first step in creating a pipeline in AWS CodePipeline? a) Adding a deploy stage b) Choosing a source location c) Setting up a service role d) Configuring notifications
Which stage of a pipeline is responsible for retrieving code from a repository? a) Deploy stage b) Source stage c) Test stage d) Approval stage
What is required to add a GitHub repository as a source in CodePipeline? a) GitHub Personal Access Token b) AWS IAM Role ARN c) SSH Key Pair d) Amazon S3 URL
What happens in the build stage of an AWS CodePipeline? a) Code is retrieved from the repository b) The application is deployed to the target environment c) The source code is compiled and tested d) The pipeline artifacts are uploaded to S3
Which deployment method is supported by CodePipeline for Elastic Beanstalk? a) Blue/Green deployment b) Canary deployment c) In-place deployment d) All of the above
How is a pipeline executed in CodePipeline? a) Manually through the AWS Management Console b) Automatically based on triggers c) Using AWS CLI commands d) All of the above
What defines the sequence of actions in a CodePipeline? a) The pipeline configuration JSON or YAML file b) The IAM role attached to the pipeline c) The S3 bucket policy d) The AWS Lambda function
Which action type is typically used for automated tests in a pipeline? a) Deploy action b) Test action c) Build action d) Approve action
What is a common use of the approval stage in AWS CodePipeline? a) To automatically deploy changes to production b) To manually review and approve changes before deployment c) To monitor build progress d) To delete failed pipelines
How can you view the history of pipeline execution? a) By enabling AWS Trusted Advisor b) Through the CodePipeline console under execution history c) Using Amazon SNS notifications d) By checking the AWS Cost Explorer
Answer Key
Qno
Answer
1
b) Automating the software release process
2
b) AWS IAM
3
b) Grant permissions to access resources in a pipeline
4
b) IAM Service Role
5
b) Access to other AWS services on behalf of the pipeline
6
b) JSON
7
a) Use restrictive IAM roles and policies
8
b) AWS CodeCommit
9
b) By invoking Lambda functions during pipeline execution
10
b) AWS Elastic Beanstalk
11
b) AWS CloudWatch
12
a) In Amazon S3 buckets
13
c) AWS CodeStar
14
c) By defining a build action in the pipeline
15
a) Amazon SNS
16
c) Setting up a service role
17
b) Source stage
18
a) GitHub Personal Access Token
19
c) The source code is compiled and tested
20
d) All of the above
21
d) All of the above
22
a) The pipeline configuration JSON or YAML file
23
b) Test action
24
b) To manually review and approve changes before deployment
25
b) Through the CodePipeline console under execution history