A company needs to grant access to a repository for a specific service account. Which level of permission should be assigned?
AAdmin access
BRead access
CWrite access
DMaintain access
Explanation
Write access allows a service account to modify repository contents, while Read access only enables viewing.
Q132
What happens when a GitHub Action fails to run due to missing permissions?
AThe workflow is canceled
BThe Job continues but fails
CNo action is taken
DAn email is sent to user
Explanation
The workflow is canceled due to failing permissions, while the other options describe inaccurate outcomes.
Q133
Which service facilitates continuous integration and delivery in Azure?
AAzure DevOps
BAzure Functions
CAzure Blob Storage
DAzure Cosmos DB
Explanation
Azure DevOps is specifically designed for CI/CD, while the others serve different purposes.
Q134
A company needs to automatically deploy code when a pull request is merged. What should they configure in GitHub?
ABranch protection rules
BGitHub Actions workflow
CIssues templates
DRepository settings
Explanation
A GitHub Actions workflow can automate deployments tied to pull requests; the other options do not facilitate this automation.
Q135
What happens when a GitHub Actions job is marked as 'if: always()'?
ARuns only on success
BRuns regardless of previous jobs
CSkipped on failure
DRuns only on failure
Explanation
'if: always()' ensures the job runs irrespective of the outcome of prior jobs, whereas other options restrict execution based on success or failure.
Q136
Which service is primarily used for automating deployment workflows in Azure?
AAzure DevOps
BAzure Monitor
CAzure Storage
DAzure Functions
Explanation
Azure DevOps offers tools for CI/CD automation, while the others serve different purposes.
Q137
A company needs to securely manage access to its Azure resources. Which policy should they implement?
AAzure Policy
BRole-Based Access Control (RBAC)
CNetwork Security Groups
DResource Locks
Explanation
Role-Based Access Control (RBAC) manages access effectively, while Azure Policy regulates resource compliance.
Q138
What happens when a GitHub Action fails and is set to 'continue-on-error'?
AThe entire workflow aborts
BSubsequent jobs still run
CThe workflow retries the job
DThe error is logged but ignored
Explanation
Continuing on error allows later jobs to execute despite the failure of the current job.
Q139
Which service manages workflows for CI/CD in Azure?
AAzure DevOps
BAzure Functions
CGitHub Actions
DAzure Kubernetes Service
Explanation
GitHub Actions specifically provides CI/CD capabilities, while Azure DevOps encompasses a broader range of services, and the others primarily serve different purposes.
Q140
A company needs to automatically trigger workflows in GitHub Actions when a pull request is created. Which event configuration should they use?
Apush
Bpull_request
Cworkflow_dispatch
Drepository_dispatch
Explanation
The pull_request event is specifically designed to trigger workflows for PR actions, while others pertain to different events.