Docsity

Copado Developer Certification: Practice Questions and Answers, Exams of Nursing

Toggle sidebar
bg1
Copado Developer - Practice Questions with correct
answers
Debbie committed some changes to the Opportunity Layout but, after deploying
her changes from DEV to INT, she found her changes were not there due to an
auto-resolved Git conflict she was not aware of. How can she prevent this from
happening again in all future promotions? - Correct Answer-Add Layout to the
Exclude From Auto Resolve multi-select picklist field in the Pipeline record
Dave committed a new method on the AccountOperations class but, after
deploying his changes from DEV to INT, he found his changes were not there due
to an auto-resolved Git conflict he was not aware of. What could he have done to
prevent this from happening just in this particular promotion?** - Correct Answer-
Remove ApexClass from the Exclude From Auto Resolve multi-select picklist
field in the Pipeline record.
Manually promote and remove ApexClass from the Exclude From Auto Resolve
multi-select picklist field in the Promotion record.
Who can see the Advanced button in button on the Commit Changes page? -
Correct Answer-Any user with Edit User Story Commit Base Branch custom
permission assigned
You're unable to see the Advanced button on the Commit Changes page with the
Destructive Changes Git operation selected. What could be the reason? - Correct
Answer-You have not been assigned the Edit User Story Commit Base Branch
custom permission.
Dave would like to change the base branch on a user story from master to uat, but
he can't see the Advanced button. As a Copado admin, what is the best way to fix
pf3
pf4
pf5
pf8
pf9
pfa
pfd
pfe
pff
pf12
pf13
pf14
pf15
pf16
pf17

Partial preview of the text

Download Copado Developer Certification: Practice Questions and Answers and more Exams Nursing in PDF only on Docsity!

Copado Developer - Practice Questions with correct

answers

Debbie committed some changes to the Opportunity Layout but, after deploying her changes from DEV to INT, she found her changes were not there due to an auto-resolved Git conflict she was not aware of. How can she prevent this from happening again in all future promotions? - Correct Answer-Add Layout to the Exclude From Auto Resolve multi-select picklist field in the Pipeline record Dave committed a new method on the AccountOperations class but, after deploying his changes from DEV to INT, he found his changes were not there due to an auto-resolved Git conflict he was not aware of. What could he have done to prevent this from happening just in this particular promotion?** - Correct Answer- Remove ApexClass from the Exclude From Auto Resolve multi-select picklist field in the Pipeline record. Manually promote and remove ApexClass from the Exclude From Auto Resolve multi-select picklist field in the Promotion record. Who can see the Advanced button in button on the Commit Changes page? - Correct Answer-Any user with Edit User Story Commit Base Branch custom permission assigned You're unable to see the Advanced button on the Commit Changes page with the Destructive Changes Git operation selected. What could be the reason? - Correct Answer-You have not been assigned the Edit User Story Commit Base Branch custom permission. Dave would like to change the base branch on a user story from master to uat, but he can't see the Advanced button. As a Copado admin, what is the best way to fix

this? - Correct Answer-Assigning Dave the Edit User Story Commit Base Branch custom permission. Debbie is deploying a user story with Apex components from UAT to production. The promotion test level on the user story is set to NoTestRun. What test level is going to be enforced in the deployment to production? - Correct Answer-Run Local Tests. The Staging Environment record has the Run all local tests checkbox enabled. A user story with Apex components and the promotion test level set to RunSpecifiedTests is being promoted and deployed. What test level is going to be enforced? - Correct Answer-If the Run all local tests checkbox is enabled in the destination environment, every Copado deployment will always run all local tests. Debbie is deploying a user story with Apex components from UAT to production. The promotion test level on the user story is set to RunSpecifiedTests. What test level is going to be enforced in the deployment to production? - Correct Answer- Deployments of Apex components to production will always run all tests. After passing Apex tests on a user story and deploying an Apex hotfix user story from dev to uat, other tests are failing in the validation deployment in production. How is this possible if the deployment didn't fail before? (2) - Correct Answer-(1) The promotion test level on the user story was set to RunSpecifiedTests but the Run All Tests checkbox is enabled in the Production Environment record. (2) The promotion test level on the user story was set to NoTestRun. Even though Dave has defined NoTestRun in the Promotion Test Level field on his user story, the deployment to production is running local tests. What could be the

(?!).)?REPLACEVALUE(?:(?!).)?)'. Dave is getting an error message when trying to promote and deploy his Apex classes and components to the integration environment. What could be the issue? (2) - Correct Answer-(1) The Apex code coverage is below the minimum Apex code coverage defined on the environment. (2) The Apex code coverage is below the minimum Apex code coverage defined in the Minimum Apex Code Coverage field on the user story. You want to give an existing PMD rule the lowest priority. How can you do this? - Correct Answer-Change the rule priority in the PMD Default RuleSet to 5. The PMD rule Avoid SOQL queries inside loops should have the highest priority when running a static code analysis scan. How you can set this? - Correct Answer- Change the rule priority in the PMD Default RuleSet to 1. Your company has had many issues with governor limits in the past, so you have been requested to give the highest relevance to the PMD rule Avoid making DML operations in Apex Class. How can you do this? - Correct Answer-Change the rule priority in the PMD Default RuleSet to 1. You have a PMD static code analysis rule with priority 2. If this rule is violated once, what will be the violation score? - Correct Answer- You have a PMD static code analysis rule with priority 1. If this rule is violated once, what will be the violation score? - Correct Answer-

A PMD static code analysis rule has been violated. If the violation score of the rule is 2, what was the priority set for this rule? - Correct Answer- As part of your development process, developers can only create scratch orgs from Git packages. How can you ensure that developers can't select a different metadata source? - Correct Answer-Select Git Packages In the Copado DX Mode picklist field in the Pipeline record. The development team is complaining that when they try to select a metadata source in the scratch org wizard, they can only see Branches. Developers should be able to select any metadata source. How you can fix this? - Correct Answer-Set the Copado DX Mode picklist field in the Pipeline record to 'None'. You have committed a custom field, but when you look at the feature branch, you don't see any updates. What do you need to check in order to troubleshoot the issue? - Correct Answer-Verify if the field is excluded in a YAML. Ana is the new NextGen networks admin. She has taken a Git snapshot in dev1 but when looking at the dev1 branch, she can't find the translation files. What could be the reason? - Correct Answer-The translations are excluded in a YAML file In a sandbox, you have made some changes in the System Admin profile. When you try to deploy the profile, you are getting the error "Unknown User Permission: ManageSandboxes." What can you do in order to move your changes forward? (2)

  • Correct Answer-(1) Create a YAML file to exclude the ManageSandboxes permission, add it to the pipeline and redeploy. (2) In the Git Promotion deployment step, use the Find and Replace feature to exclude the ManageSandboxes permission and redeploy.

that do not exist in the GA version of Salesforce. What can she do to move her changes forward? - Correct Answer-Use the Find and Replace feature in the Git Promotion deployment step to exclude the user permissions introduced in the higher API version and redeploy. Which of the following examples could potentially create a Git conflict? (2) - Correct Answer-(1) Merge the feature branch into the source org's branch. (2) Merge the feature branch into the promotion branch. After deleting a component in Dev1, Debbie has created a new user story to delete the component from the repository and upper environments. She has refreshed the metadata index before selecting the component. What can she do now in order to perform a destructive change commit of the component? - Correct Answer-Change the org credential and the environment on the user story and find the component in another org. You have been assigned the task of deleting a custom field. After deleting the custom field in a sandbox, you have created a user story to delete the field in Git and in upper environments, but you refreshed the medata grid before selecting the custom field. What can you do now in order to perform a destructive changes commit of the field? (2) - Correct Answer-(1) Use the Add Row button on the Commit Changes page and add the API name of the component. (2) Change the base branch on the user story to locate the field in another branch Dave has been assigned the task of deleting a custom object that has not been used in production for a long time. After committing the destructive changes, he notices that no feature branch has been created. What could be the reason? - Correct

Answer-While adding a row, Dave misspelled the metadata API name of the component he wanted to delete in the metadata grid. Why the commits on a user story could display the status Commit not in branch? - Correct Answer-Someone has used the Re-Create Feature Branch on the user story Where can you set the Maximum Static Code Analysis Score? - Correct Answer- On the Environment Record Dave has been asked to delete a custom object that has been deployed only to UAT. He has committed the object using the Destructive Changes Git operation. While reviewing the commits, he finds out that the commit has the status No changes. What could be the reason for this? - Correct Answer-The base branch was set to master branch **When deploying US1 and US2 in the same promotion, the old code in US2 is overwriting the most up-to-date code in US1. How can a developer resolve this issue? - Correct Answer-Resolve the conflict manually using the Online Conflict Resolution feature. Use the Order User Stories by field in the Promotion record.??? Your company has multiple developers working in separate environments and sometimes your Apex classes get overwritten. What can you do to prevent this? - Correct Answer-Activate the Online Conflict Resolution feature by removing Apex classes from the Exclude From Auto Resolve field in the Pipeline record A developer has deployed a user story from a Dev sandbox that contains an old version of the code. While deploying, the auto-resolution engine has overwritten

Dave is taking a look at some of the data they have imported from production to dev2 for testing purposes using data templates, and he has noticed the data in some of the fields doesn't match that of the production environment. What could be the reason for this? (2) - Correct Answer-(1) The user who created the data templates used Scramble with Format in some of the fields to avoid moving sensitive data. (2) The user who created the data templates used Scramble Value in some of the fields to leave out sensitive data. Within the same sprint, Debbie added, a defaultPhone method and Dave added a defaultUrl method, both to the account operations class. Since, Debbie and Dave are working in their individual sandboxes, after promoting the second user story, a Git conflict arose. They learned up to solve the conflict using Copado's online conflict resolution feature. What happens when both user stories are mass back-promoted? - Correct Answer-Copado uses the conflict solution that was previously created Debbie and Dave were modifying the same Apex class on their individual sandboxes, Debbie deployed first without any issue, but when Dave tried to deploy, a Git conflict arose, so they teamed up and resolved it manually with Copado's online conflict resolution feature. What happens when both user stories are moved to the next environment? - Correct Answer-Copado uses the conflict solution that was previously created. Rob would like to define the following quality gates:

  1. Run an Apex Test with Validation for Apex classes and triggers.
  2. Run a Compliance Check for profiles and permission sets. What is the minimum number of metadata groups he needs to create? - Correct Answer-2, one for Apex classes and triggers and one for profiles and permission sets.

When working with data templates, how can you avoid getting validation rule errors when deploying your templates to the next environment? (3) - Correct Answer-(1) You can use a manual task to manually deactivate the validation rule before executing the deployment and reactivate it once the deployment is completed. (2) You can do a validation deployment to make sure you don't have any offending records. (3) You can enable the Bypass Validation Rules checkbox in the data template. Rob wants to deploy a data template to production and wants to disable active validation rules in production to make sure the template is successfully migrated. To this end, he creates a Manual Task deployment step. and then adds a Data Template deployment step. What would be the deployment process in this case? - Correct Answer-Rob will receive an email notification for the manual task to deactivate the validation rules in production. Once he deactivates the validation rules, he will need to set the Manual Task deployment step to Complete. Next, the template will be deployed. For which of the following components is it not recommended to use auto-resolve? (2) - Correct Answer-(1) Apex Triggers (2) Visualforce Pages For which of the following components would you enable the Online Conflict Resolution feature? (2) - Correct Answer-(1) Apex Triggers

What is the easiest way for him to address these requirements? - Correct Answer- He needs to set up 1 connection behavior in INT with 2 quality gates, a Static Code Analysis for Apex classes and triggers and a validation for profiles and for Apex classes and triggers. Rob, has set up the following connection behavior in UAT: Back Promote = Automated Quality Gate = Apex Tests Dave, the lead developer, has committed an Apex class in dev1 and is going to deploy it to UAT. What will happen once the user story is successfully deployed to UAT? - Correct Answer-Copado will automatically back-promote the user story to other lower environments connected with UAT. **What happens when you use the Recommit Files Git operation and select the Re-Create Feature Branch checkbox? (2) - Correct Answer-(1) The status of previous commit records is set to Commit not in branch. (2) Previous commit records will be removed from the user story. B. Previous commits are not included in the newly created feature branch. C. The status of previous commit records is set to Commit not in branch. When you use the Recommit Files operation on a user story and flag the Re-Create Feature Branch checkbox, what happens to the status of previous commit records on the same user story? - Correct Answer-The Status changes to Commit not in Branch

You have work in progress in dev1. After retrieving from the org and pushing a hotfix for your Admin profile from the Copado CLI, the validation deployment is failing. Why? - Correct Answer-While pushing your changes from the CLI, Copado deploys the complete profile file which could contain references to other work in progress in dev1. You would like to receive an alert whenever the static code analysis score of a user story is above 15. How you can achieve this? - Correct Answer-In the Environment record, set the Maximum SCA Score field to 15. You would like to create a YAML file to remove all references to Field Level Security from managed fields in profiles. Which value should you use in the replace_values parameter? - Correct Answer-packagePrefix__.*? You would like your scratch org to have a namespace. Where can you set this up? - Correct Answer-In the Project Template What happens with a component that is added to the .gitignore file and is later committed on a user story? - Correct Answer-If the component has never been committed successfully to Git, it won't be created in Git. If the component has already been tracked by Git, even if it is added to the .gitignore file, it will be updated in Git. **Rob would like to run Apex tests for all Apex metadata coming into the UAT environment and a compliance check for profiles and permission sets coming into the same environment. How can he accomplish this? - Correct Answer-He needs to set up 3 connection behaviors in UAT with 1 quality gate each, 1 for Apex tests, 1 for the compliance check for permission sets and 1 for the compliance check for profiles.

the sales reps layout from being deployed while deploying the support team layout? - Correct Answer-Use the Recommit Files Git operation, flag the Re- Create Feature Branch checkbox and select only the layout for the support team. You are using the auto-resolve conflict resolution feature, Copado will stop the merge of the feature branch into the promotion branch if it detects a conflict. - Correct Answer-FALSE In Dev1, Debbie has added a new method to an Apex class. She has committed the user story and deployed the user story to UAT. In Dev2, Dave has added a method to the same class and has deployed the changes to UAT. This has reported a conflict, so Dave has teamed up with Debbie and resolved it manually. What happens when the user stories are moved to the next environment? - Correct Answer-No conflict is reported. Copado uses the auto-resolve conflict resolution feature to apply the changes from the latest deployment to the Apex class. Dave has been assigned the task of deleting a custom object. After committing the destructive changes, he notices that no feature branch has been created. What could be the reason? - Correct Answer-Base brach was set to master branch and then component was not in production. What happens with the previously created commit records in the User story after recommitting files using the Re-Create feature branch functionality? - Correct Answer-Their status is changed to Commit not in Branch Which is NOT true about destructive changes? - Correct Answer-The component needs to be manually removed in the destination org after deploying the destructive changes.

Ana has deleted a component in source org and refreshed the metadata index before committing a destructive changes. Now she cannot find the deleted component. What should she do to commit the deletion? - Correct Answer-She can use the Org Credential lookup in the Commit Changes Page to find the component in another org. Dave is trying to override the base branch for a User Story so that it gets created out of UAT. Where can he find the base branch for a feature branch? - Correct Answer-In the Advanced Section in the Commit Changes page. Rob has enabled the Online Conflict Resolution and he has been alerted of a conflict. How can he review and resolve the conflicts detected? - Correct Answer- He can click on Review Merge Conflict in the related Promotion record. What types of Conflict Resolution processes can be executed with Copado? - Correct Answer-Auto-resolve, Manual Resolution For some components, a Manual conflict resolution is a better approach. For which types of metadata is it a good idea to use the Exclude from Auto-Resolve? (2) - Correct Answer-Apex Triggers Layouts and Apex Classes - Correct Answer- When is the Online Conflict Resolution triggered? - Correct Answer-After detecting a merge conflict between a feature branch and the Promotion branch. After deploying an update to the account operation class, the QA team noticed some previous functionality was overwritten by the Auto-Resolve. How can you

Rob is setting up CodeScan. He has located the tab and clicked on New but has not been asked to choose between the PMD and CodeScan record types. What should he check? (3) - Correct Answer-1. Ensure that both PMD and CodeScan record types are assigned to the SCA object on his profile or perm set

  1. Ensure he has at least read access to the record type field on the SCA object
  2. Ensure that the Copado version is 12.1 or higher Debbie created an Apex class in Dev1 and is manually deploying to UAT. She selects No Test Run as tesl level, but apex tests were run anyway. Why? - Correct Answer-The Run all local tests checkbox is enabled in the UAT environment When running Apex tests on a US, where can you click to review the results? - Correct Answer-Click on Manage Apex Tests in the US record Where can you specify the minimum Apex code coverage? - Correct Answer-User story and environment Ana added some Manual Deployment Tasks in her User Story, but in the Deployment record, she can only see the Git Promotion Step. What should she review? - Correct Answer-If the Deployment is a Validation Deployment. What are good reasons to create a Manual Task? - Correct Answer-Configure Metadata Types not supported by the Metadata API.

While using Apex Tasks, when are you notified in case of any Script code errors? - Correct Answer-Once the deployment is executed. Dave got an error while trying to perform a Manual Task that prevented him from completing it. Which steps should he follow now? - Correct Answer-Set the Deployment step status to "Incomplete" so that the release manager receives a notification of the Deployment error. You have the following Connection behaviors configured in your Pipeline, what will happen when a User Story is deployed from DEV 1 to INT? - Correct Answer- Correct answerNothing will happen. The user story must be manually back- deployed to Dev2. You want to run a selenium test when someone changes a community profile. How can you ensure that this quality gate is applied only when a community profile is deployed? Hint: All the community profiles contain Community in its name. - Correct Answer-Create a Metadata Item, select Profile as Metadata Type and use the Advanced Metadata Name to filter by Community profiles. You want to have back-deployments to Dev environments scheduled to run everyday at 9pm. How can you achieve this with Continuous Delivery? - Correct Answer-From the INT Connection Behavior record, click on Schedule Back- Promotion hyperlink and schedule the frequency there. How can you create a Connection Behavior record for the UAT environment? - Correct Answer-From the Pipeline Configuration page, click on the shield icon in the UAT environment. The main YAML file structure is composed of: - Correct Answer-Regex expression and rules.